﻿@model MySite2.Models.IndexModel
           
<div class="section">
        <div class="section-header">
            Blog posts
        </div>
        <div style="padding: 5px;">
            @foreach (var bp in Model.BlogPosts)
            {
                <div style="padding-bottom: 5px;">
                    <span style="color: #0389e6">@bp.Date.ToString("dd-MM-yyyy")</span> <a href="@bp.URL" target="_blank"><span>@bp.Title</span></a>
                </div>
            }
        </div>
    </div>

